package com.ruoyi.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.domain.Keshi2;
import com.ruoyi.mapper.Keshi1Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.Keshi2Mapper;
import com.ruoyi.domain.Keshi2;
import com.ruoyi.service.IKeshi2Service;

/**
 * 科室2Service业务层处理
 * 
 * @author ya
 * @date 2025-04-23
 */
@Service
public class Keshi2ServiceImpl extends ServiceImpl<Keshi2Mapper, Keshi2> implements IKeshi2Service
{
    @Autowired
    private Keshi2Mapper keshi2Mapper;

    /**
     * 查询科室2
     * 
     * @param id 科室2主键
     * @return 科室2
     */
    @Override
    public Keshi2 selectKeshi2ById(Long id)
    {
        return keshi2Mapper.selectKeshi2ById(id);
    }

    /**
     * 查询科室2列表
     * 
     * @param keshi2 科室2
     * @return 科室2
     */
    @Override
    public List<Keshi2> selectKeshi2List(Keshi2 keshi2)
    {
        return keshi2Mapper.selectKeshi2List(keshi2);
    }

    /**
     * 新增科室2
     * 
     * @param keshi2 科室2
     * @return 结果
     */
    @Override
    public int insertKeshi2(Keshi2 keshi2)
    {
        return keshi2Mapper.insertKeshi2(keshi2);
    }

    /**
     * 修改科室2
     * 
     * @param keshi2 科室2
     * @return 结果
     */
    @Override
    public int updateKeshi2(Keshi2 keshi2)
    {
        return keshi2Mapper.updateKeshi2(keshi2);
    }

    /**
     * 批量删除科室2
     * 
     * @param ids 需要删除的科室2主键
     * @return 结果
     */
    @Override
    public int deleteKeshi2ByIds(Long[] ids)
    {
        return keshi2Mapper.deleteKeshi2ByIds(ids);
    }

    /**
     * 删除科室2信息
     * 
     * @param id 科室2主键
     * @return 结果
     */
    @Override
    public int deleteKeshi2ById(Long id)
    {
        return keshi2Mapper.deleteKeshi2ById(id);
    }
}
